import  request  from '@/utils/request';

//post
export function postActionData(url,data) {
    return request({
        url: url,
        method:'post' ,
        data: data
    })
}
export function postActionParams(url,parameter) {
    return request({
        url: url,
        method:'post' ,
        params: parameter
    })
}

//put
export function putActionData(url,data) {
    return request({
        url: url,
        method:'put',
        data: data
    })
}
export function putActionParams(url,params) {
    return request({
        url: url,
        method:'put',
        params: params
    })
}

//get
export function getAction(url,parameter) {
    return request({
        url: url,
        method: 'get',
        params: parameter
    })
}
export function getActionData(url,data) {
    return request({
        url: url,
        method: 'get',
        data: data
    })
}
//delete
export function deleteAction(url,parameter) {
    return request({
        url: url,
        method: 'delete',
        params: parameter
    })
}
